--
-- Description: script to create the OperatingSystems table.
-- Date created: 17 Apr 2008
--

set ANSI_NULLS on
set QUOTED_IDENTIFIER on
go

if not exists 
(
    select * 
    from dbo.sysobjects
    where id = object_id(N'[dbo].[OperatingSystems]')
    and objectproperty(id, N'IsUserTable') = 1
)
begin
    create table [dbo].[OperatingSystems]
    (
        [OperatingSystemID] smallint identity(1,1) not null
        , [OperatingSystemName] nvarchar(100) not null
        , [OperatingSystemVersion] varchar(100) not null
        constraint [PK_OperatingSystems] primary key clustered
        (
            [OperatingSystemID] asc
        ) on [primary]
    ) on [primary]

    print ''
    print '*************************************************************************************'  
    print 'Created table [dbo].[OperatingSystems]'
    print '*************************************************************************************'  
    print ''
end
else
begin
    print ''
    print '*************************************************************************************'  
    print 'Table [dbo].[OperatingSystems] already exists.'
    print '*************************************************************************************'  
    print ''
end
